<div id="ContentGroup">
    <div class="count-header">
        <a>人员基本信息添加</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form  id="RYJBXX_Update" data-role="form" data-event="finish" data-type="post" data-url="<{'RYJBXX_Update_Action'|U}>">
    <input type="hidden" id="RYJBXX_BH_ORA"  name="RYJBXX_BH_ORA" value="<{$Model->RYJBXX_BH|security_encript}>" />
                <div class="count-content-title">人员基本信息</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div class="form-list-item">
                    <label class="form-list-item-label">职称级别</label>
                    <{*<{ZCJB::create($Model->ZCJB_BH)->ZCJB_MC}>*}>
                    <{*<input type="hidden" name="ZCJB_BH" value="<{$Model->ZCJB_BH}>">*}>
                    <{$zcjb= ZCJB::query()}>
                    <{'ZCJB_BH'|html_dropdownlist:$zcjb.DataList:$Model->ZCJB_BH:'ZCJB_BH':'ZCJB_MC'}>
                    <p class="form-list-item-tip">请按照顺序手动编号</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>工号</label>
                    <input type="text" id="RYJBXX_GH" name="RYJBXX_GH" value="<{$Model->RYJBXX_GH }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>中文名</label>
                    <input type="text" id="RYJBXX_ZWM" name="RYJBXX_ZWM" value="<{$Model->RYJBXX_ZWM }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>英文名</label>
                    <input type="text" id="RYJBXX_YWM" name="RYJBXX_YWM" value="<{$Model->RYJBXX_YWM }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>职称</label>
                    <input type="text" id="RYJBXX_ZC" name="RYJBXX_ZC" value="<{$Model->RYJBXX_ZC }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>学历</label>
                    <input type="text" id="RYJBXX_XL" name="RYJBXX_XL" value="<{$Model->RYJBXX_XL }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label">简介</label>
                    <textarea id="RYJBXX_JJ" name="RYJBXX_JJ"><{$Model->RYJBXX_JJ }></textarea>
                    <p class="form-list-item-tip">可输入不超过500个字符的纯文本信息</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label">图片</label>
                    <input type="text" id="RYJBXX_TP"  name="RYJBXX_TP"  value="<{$Model->RYJBXX_TP }>" />
                    <span id="RYJBXX_TPImage" class="button" >选择图片</span>
                    <p class="form-list-item-tip">本地上传282*396的图片，或输入远程图片url</p>
                </div>
            </form>     
            <div class="form-operation">
                <span class="button" id="RYJBXX_Update-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#RYJBXX_Insert").vtip();//开启鼠标提示.
        
        $("#RYJBXX_Update").validate({
            rules:{
                "RYJBXX_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "ZCJB_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "RYJBXX_GH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "RYJBXX_ZWM":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "RYJBXX_YWM":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "RYJBXX_ZC":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "RYJBXX_XL":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "RYJBXX_JJ":{
                    "maxbytelength":1000 
                }, 
                "RYJBXX_TP":{
                    "maxbytelength":500 
                }, 
                "example":{} //可继续追加jquery validate客户端验证条件
            },
            "errorClass": "form-list-item-warn",
            //errorPlacement: function (error, element) {element.attr("data-tips", error.text());},//关闭默认提示，使用鼠标提示框时使用
            submitHandler: function () {
                $("#RYJBXX_Update").trigger("finish");
            }
        });
    
        $("#RYJBXX_TPImage").click(function(){
            $.imageUpload("RYJBXX_TP", 282, 396,$("#RYJBXX_TP").val(), function(data){
                $("#RYJBXX_TP").val(data);
            });
        });
        $("#ZCJB_BH").attr("data-tip","请按照顺序手动编号");
        $("#RYJBXX_JJ").attr("data-tip","可输入不超过500个字符的纯文本信息");
        $("#RYJBXX_TP").attr("data-tip","本地上传282*396的图片，或输入远程图片url");
        $("#RYJBXX_Update-Submit").click(function () {
            $("#RYJBXX_Update").submit();
        });
    });
</script>

